//
//  MyCardsViewController.m
//  PeopleStreet
//
//  Created by 辰领科技 on 16/4/8.
//  Copyright © 2016年 yuf. All rights reserved.
//

#import "MyCardsViewController.h"
#import "MyForSaleCardsViewController.h"
@interface MyCardsViewController ()
@property (strong, nonatomic) IBOutlet UIView *navView;
@property (strong, nonatomic) IBOutlet UIScrollView *scroView;

@end

@implementation MyCardsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self initViewLayout];
}

- (void)initViewLayout{
    [self adaptiveViewLayout:self.view];
    [self adaptiveViewLayout:self.navView];
    [self adaptiveViewLayout:self.scroView];
    
    _scroView.contentSize = flexibleSize(CGSizeMake(0, 505), YES);
}

- (IBAction)back:(id)sender {
//    [[NSUserDefaults standardUserDefaults]setObject:@"1" forKey:@"ifLogin"];
    [self.navigationController  popViewControllerAnimated:YES];
}
#pragma mark == 代金券
- (IBAction)moneyPaper:(id)sender {
    UIStoryboard *secondStroyBoard=[UIStoryboard storyboardWithName:@"PersonCenterStoryboard" bundle:nil];
    MyForSaleCardsViewController *page = [secondStroyBoard instantiateViewControllerWithIdentifier:@"MyForSaleCards"];
    page.type = 2;
    [self.navigationController   pushViewController:page animated:YES];
}
#pragma mark == 优惠券
- (IBAction)forSalePaper:(id)sender {
    UIStoryboard *secondStroyBoard=[UIStoryboard storyboardWithName:@"PersonCenterStoryboard" bundle:nil];
    MyForSaleCardsViewController *page = [secondStroyBoard instantiateViewControllerWithIdentifier:@"MyForSaleCards"];
    page.type = 1;
    [self.navigationController   pushViewController:page animated:YES];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
